<?php

return
[
    'menuPid'=>99,
    'prefix'=>'primary',
    'orderByDesc'=>'id',
    'table'=>'simulation_login',// 基于此表构建 代码
    'modelName'=>'SimulationLogin',//模块名
    'modelShowName'=>'模拟登录',//HTML页面 显示的功能名称,例如: 订单, 相关名称有订单添加,订单编辑,订单删除,订单列表,订单管理, 同时,php代码中会有注释
    //字段处理
    "fields"=>
    [
        ['field'=>'from_id','type'=>'int','title'=>'被登录者'],
        ['field'=>'target_id','type'=>'int','title'=>'登录者'],
    ],
    'functions'=> //功能
    [
        ['name'=>'model','path'=>'app/Models'],
        ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>['insertDTO','updateDTO','searchDTO']],
        ['name'=>'service','path'=>'app/Services','methods'=>['paginate','insert','updateById','deleteById','deleteByIds','getById']],
        ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['paginate','insert','update','delete','detail']],
        ['name'=>'layuiAdminPage',
            'output'=>'/code/xm2-admin/page/simulationLogin',
            'pages'=>
            [
                ['page'=>'form','functions'=>[]],
                ['page'=>'index','functions'=>['insert','update','delete','batchDelete']],
            ]
        ],
        ['name'=>'route'],
    ],
];
